#ifndef TFULLSCREENLABEL_H
#define TFULLSCREENLABEL_H

#include <QLabel>

class TFullScreenLabel : public QLabel
{
    Q_OBJECT
public:
    TFullScreenLabel(QWidget *parent=0);

    void setRect(QRect rect);
    void setDrawPixmap(QPixmap pixmap);

    void quit();

protected:
    void paintEvent(QPaintEvent *e);

private:
    QImage* setDark(QImage *image);

private:
    QRect _autoRect;
    QPixmap _pixmap;
};

#endif // TFULLSCREENLABEL_H
